import 'package:json_annotation/json_annotation.dart';

part 'attention.g.dart';

@JsonSerializable()
class AttentionExpertModel {

  String avatar;

  String nickname;

  int fans;

  bool checked;

  AttentionExpertModel({ required this.avatar, required this.nickname, required this.fans, this.checked = false });

  factory AttentionExpertModel.fromJson(Map<String, dynamic> json) =>
      _$AttentionExpertModelFromJson(json);

  Map<String, dynamic> toJson() => _$AttentionExpertModelToJson(this);

  @override
  String toString() {
    return toJson().toString();
  }
}